import request from '@/utils/request'

export function getDevices(productId) {
  return request({
    // url: '/product',
    url: '/product/' + productId + '/device',
    method: 'get'
  })
}

export function getDeviceChart(productId, deviceId) {
  return request({
    // url: '/product',
    url: '/product/' + productId + '/device/' + deviceId,
    method: 'get'
  })
}
